#include <k_api.h>

extern int __HeapBase;
/* heap_offset for normal malloc or something */
#define USER_HEAP_OFFSET 1024
#define HEAP_SIZE 1024 * 20
/* heap_start and heap_len is set by linkscript(*.ld) */
k_mm_region_t g_mm_region[] = {{(uint8_t *)(&__HeapBase) + USER_HEAP_OFFSET, HEAP_SIZE}};
int g_region_num = sizeof(g_mm_region) / sizeof(k_mm_region_t);

void soc_err_proc(kstat_t err) {}

krhino_err_proc_t g_err_proc = soc_err_proc;